Profiling gas consumption in solidity smart contracts

نویسندگان

چکیده

Nowadays, more and applications are developed for running on a distributed ledger technology, namely dApps. The business logic of dApps is usually implemented within smart contracts through Solidity, programming language writing different blockchain platforms, including the popular Ethereum. In Ethereum, run machines miners gas corresponds to execution fee compensating such computing resources. However, deployment costs contract depend implementation choices done by developers. Unappropriated design could lead higher consumption than necessary. this paper, we (i) identify set 19 Solidity code smells affecting transaction contract, (ii) assess relevance survey involving 34 participants. On top these smells, propose GasMet, suite metrics statically evaluating quality from perspective. An experiment 2186 demonstrates that proposed have direct associations with costs. in our can be used easily identifying source segments need optimizations.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

DappGuard : Active Monitoring and Defense for Solidity Smart Contracts

Ethereum’s smart contracts present an attractive incentive toward participating in the network. Deploying a smart contract allows a user to run a distributed application (Dapp) that includes storage, payment features, and cryptographic services all within the context of just a contract script and its layout. However, recently exploited vulnerabilities in the Solidity smart contract language hav...

متن کامل

Profiling Smart Contracts Interactions Tensor Decomposition and Graph Mining

Smart contracts, computer protocols designed for autonomous execution on predefined conditions, arise from the evolution of the Bitcoin’s crypto-currency. They provide higher transaction security and allow economy of scale through the automated process. Smart contracts provides inherent benefits for financial institutions such as investment banking, retail banking, and insurance. This technolog...

متن کامل

Quantitative Analysis of Smart Contracts

Smart contracts are computer programs that are executed by a network of mutually distrusting agents, without the need of an external trusted authority. Smart contracts handle and transfer assets of considerable value (in the form of crypto-currency like Bitcoin). Hence, it is crucial that their implementation is bug-free. We identify the utility (or expected payoff) of interacting with such sma...

متن کامل

Plasma: Scalable Autonomous Smart Contracts

Plasma is a proposed framework for incentivized and enforced execution of smart contracts which is scalable to a significant amount of state updates per second (potentially billions) enabling the blockchain to be able to represent a significant amount of decentralized financial applications worldwide. These smart contracts are incentivized to continue operation autonomously via network transact...

متن کامل

Adding Concurrency to Smart Contracts

Modern cryptocurrency systems, such as Ethereum, permit complex financial transactions through scripts called smart contracts. These smart contracts are executed many, many times, always without real concurrency. First, all smart contracts are serially executed by miners before appending them to the blockchain. Later, those contracts are serially re-executed by validators to verify that the sma...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Journal of Systems and Software

سال: 2022

ISSN: ['0164-1212', '1873-1228']

DOI: https://doi.org/10.1016/j.jss.2021.111193